<?php
/**
 * Created by jinqiang on 2024/7/11 9:40.
 * Copyright (c) 2024, Your Company. All rights reserved.
 */


namespace App\Http\Controllers\Wms;


use App\Http\Controllers\Controller;
use App\Http\Services\Wms\ItemoutService;
use Illuminate\Http\Request;

class ItemoutController extends Controller
{
    public function list(Request $request, ItemoutService $itemoutService)
    {
        $this->validate($request, [
            'page' => 'required',
            'limit' => 'required'
        ]);
        $param = $request->all();
        $res = $itemoutService->search($param);
        return result($res);
    }

    public function failList(Request $request, ItemoutService $itemoutService)
    {
        $this->validate($request, [
            'page' => 'required',
            'limit' => 'required'
        ]);
        $param = $request->all();
        $res = $itemoutService->searchFail($param);
        return result($res);
    }
}
